export interface ITodo {
  id: number;
  content: string;
  completed: boolean;
}

export interface IState {
  todoList: ITodo[];
}

export enum TODO_ACTION_TYPE {
  ADD_TODO = 'addTodo',
  REMOVE_TODO = 'removeTodo',
  TOGLE_TODO = 'toggleTodo',
}

export interface IAction {
  type: TODO_ACTION_TYPE;
  payload: ITodo | number;
}
